/**
 * <p>
 * 筛选配置
 *
 * @Author：Roy
 * @Description：设备计量统计
 * @Date：Create by 2023-12-05 11:48:22
 */
const selectConfig = {
  'device-meter-statistic': [
    {
      type: 'select-radio-group',
      prop: 'statisticsMode',
      name: '统计方式',
      selectStyle: { width: '181px' },
      selectConfig: {
        buttonList: [
          { label: 'hour', name: '按时' },
          { label: 'day', name: '按日' },
          { label: 'month', name: '按月' },
          { label: 'year', name: '按年' }
        ]
      }
    },
    {
      type: 'select-date-picker',
      prop: 'solidifyDateStart',
      name: '开始时间',
      selectStyle: { width: '180px' },
      selectConfig: {
        type: 'date',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        clearable: true,
        placeholder: '请选择开始时间'
      }
    },
    {
      type: 'select-date-picker',
      prop: 'solidifyDateEnd',
      name: '结束时间',
      selectStyle: { width: '180px' },
      selectConfig: {
        type: 'date',
        format: 'yyyy-MM-dd',
        valueFormat: 'yyyy-MM-dd',
        clearable: true,
        placeholder: '请选择结束时间'
      }
    },
    {
      type: 'select-input',
      prop: 'deviceCodeOrName',
      name: '关键字',
      selectStyle: { width: '180px' },
      selectConfig: {
        clearable: true,
        placeholder: '请输入设备编码/名称',
        iconConfig: {
          type: 'suffix',
          style: { cursor: 'pointer' }
        }
      }
    },
    {
      type: 'select-option',
      prop: 'readMeterType',
      name: '读表类型',
      optionList: [],
      selectPath: 'dictList',
      selectParams: {
        codeList: ['ecp-admin.meterDevice.readMeterType']
      },
      dataProp: {
        keyProp: 'ecp-admin.meterDevice.readMeterType',
        nameProp: 'label',
        codeProp: 'value'
      },
      selectStyle: { width: '180px' },
      selectConfig: {
        clearable: true,
        placeholder: '请选择读表类型'
      }
    },
    {
      type: 'select-option',
      prop: 'energyTypeId',
      name: '能源类型',
      optionList: [],
      selectStyle: { width: '180px' },
      selectPath: 'commonSelected',
      selectParams: {
        code: 'EnergyConsumptionTypeSelected'
      },
      dataProp: {
        dataType: 'resData',
        nameProp: 'label',
        codeProp: 'value'
      },
      selectConfig: {
        clearable: true,
        placeholder: '请选择能源类型'
      }
    },
    {
      type: 'select-option',
      prop: 'sceneProjectId',
      name: '所属项目',
      optionList: [],
      selectPath: 'commonSelected',
      selectParams: {
        code: 'SceneProjectSelected'
      },
      dataProp: {
        dataType: 'resData',
        nameProp: 'label',
        codeProp: 'value'
      },
      selectStyle: { width: '180px' },
      selectConfig: {
        clearable: true,
        placeholder: '请选择所属项目'
      }
    },
    {
      type: 'select-cascader',
      prop: 'sceneInfo',
      name: '所属场景',
      optionList: [],
      selectConfig: {
        clearable: true,
        placeholder: '请选择所属场景',
        props: { checkStrictly: true }
      },
      selectStyle: { width: '180px' }
    }
  ]
}

export default {}
export { selectConfig }
